<?php
	$this->title('View ICD Entries');
?>
<h2>ICD Entries</h2>
<span style="margin: 0 0 1em 2.75em;"><?=$this->html->link('add New', array('IcdCodes::add')); ?></span>
<ul>
    <?php foreach ($icdCodes as $icdCode) { ?>
        <li style=" list-style-type: none;">
        	<span style="width: 40px;"><?=$icdCode->name . ' : ' . $icdCode->code;?></span>
        	<span style="width: 40px; margin-left: 20px;"><?=$this->html->link('Edit', array('IcdCodes::edit', 'args' => $icdCode->id)); ?></span>
        </li>
    <?php } ?>
</ul>